#########################################################################
# File Name: build.sh
# Author: Richard
# mail: freedom_wings@foxmail.com
# Created Time: Sat 24 Apr 2021 03:03:29 AM PDT
#########################################################################
#!/bin/bash

#zlib
prefix=/home/veryarm/ssh/zlib.install CC=arm-none-linux-gnueabi-gcc ./configure
#openssl

./Configure --prefix=/home/veryarm/ssh/openssl.install  arm-none-linux-gnueabi-gcc
# modify Makefile

#openssh
autoreconf
./configure --target=aarch64-poky-linux --host=aarch64-poky-linux --build=x86_64-linux --with-libtool-sysroot=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux    --with-libs --with-zlib=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib --with-ssl-dir=/opt/fsl-imx-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/lib   --prefix=/home/richard/git/openssh/_install
